<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:s="http://jboss.com/products/seam/taglib"
      xmlns:a="http://richfaces.org/a4j"
      xmlns:r="http://richfaces.org/rich"
      xmlns:m="http://www.caradvert.com/main">

    <ui:composition template="/content/templates/myMenuTemplate.xhtml">
        <ui:param name="selectedMenuSub1" value="adverts"/>
        <ui:define name="title">#{labels['REVIEW']}</ui:define>
        <ui:define name="headContent">
            <script type="text/javascript" src="/resources/lightbox/lightbox.js"></script>
            <link rel="stylesheet" href="/resources/lightbox/lightbox.css" type="text/css"/>
        </ui:define>

        <ui:define name="body">
            <ui:decorate template="/content/templates/contentDecorator.xhtml">

                <ui:include src="/content/components/sellAdvertDetailsComponent.xhtml">
                    <ui:param name="advert" value="#{viewAdvertDetailsBean.advert}"/>
                    <ui:param name="backUrl" value="#{ctxPath}/content/pages/mymenu/myAdverts.xhtml"/>
                </ui:include>                        
                <table style="margin:0 auto 0 auto;">
                    <tr>
                        <td>
                            <form action="#{ctxPath}/content/pages/mymenu/editAdvert.xhtml" method="get">
                                <input type="hidden" name="advert-id" value="#{viewAdvertDetailsBean.advert.id}"/>
                                <input type="submit" value="#{labels['EDIT']}"/>
                            </form>
                        </td>
                        <td>
                            <form action="#{ctxPath}/content/pages/mymenu/addPhoto.xhtml" method="get">
                                <input type="hidden" name="advert-id" value="#{viewAdvertDetailsBean.advert.id}"/>
                                <input type="submit" value="#{labels['ADD_PHOTO']}"/>
                            </form>
                        </td>
                    </tr>
                </table>

            </ui:decorate>
        </ui:define>
    </ui:composition>
</html>